package com.wz.project.bas.workshopNowClass.service;

import com.wz.common.utils.text.Convert;
import com.wz.project.bas.workshopNowClass.domain.WorkshopNowClass;
import com.wz.project.bas.workshopNowClass.mapper.WorkshopNowClassMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 基础当前车间班组 服务层实现
 * 
 * @author sys
 * @date 2021-10-28
 */
@Service
public class WorkshopNowClassServiceImpl implements IWorkshopNowClassService 
{
	@Autowired
	private WorkshopNowClassMapper workshopNowClassMapper;

	/**
     * 查询基础当前车间班组信息
     * 
     * @param lineId 基础当前车间班组ID
     * @return 基础当前车间班组信息
     */
    @Override
	public WorkshopNowClass selectWorkshopNowClassById(String lineId)
	{
	    return workshopNowClassMapper.selectWorkshopNowClassById(lineId);
	}
	
	/**
     * 查询基础当前车间班组列表
     * 
     * @param workshopNowClass 基础当前车间班组信息
     * @return 基础当前车间班组集合
     */
	@Override
	public List<WorkshopNowClass> selectWorkshopNowClassList(WorkshopNowClass workshopNowClass)
	{
	    return workshopNowClassMapper.selectWorkshopNowClassList(workshopNowClass);
	}
	
    /**
     * 新增基础当前车间班组
     * 
     * @param workshopNowClass 基础当前车间班组信息
     * @return 结果
     */
	@Override
	public int insertWorkshopNowClass(WorkshopNowClass workshopNowClass)
	{
	    return workshopNowClassMapper.insertWorkshopNowClass(workshopNowClass);
	}
	
	/**
     * 修改基础当前车间班组
     * 
     * @param workshopNowClass 基础当前车间班组信息
     * @return 结果
     */
	@Override
	public int updateWorkshopNowClass(WorkshopNowClass workshopNowClass)
	{
	    return workshopNowClassMapper.updateWorkshopNowClass(workshopNowClass);
	}

	/**
     * 删除基础当前车间班组对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteWorkshopNowClassByIds(String ids)
	{
		return workshopNowClassMapper.deleteWorkshopNowClassByIds(Convert.toStrArray(ids));
	}
	
}
